<template>
	<view class="content">
		<textarea type="text" :value="value" 
		placeholder="请在此输入您要反馈的问题..." @input='input'/>
	<view class="foot" @tap='Feedback'>
		提交
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value:''
			}
		},
		methods: {
			input(e){
				var value=e.detail.value;
				this.value=value;
				console.log(e.detail.value)
			},
			Feedback(){
				var uid=uni.getStorageSync('uid');
				this.infoprop('/Member/FeedBack', 'POST', {Uid:uid,View:this.value}, (res) =>{
					console.log(res);
					
						uni.navigateBack({
							delta: 1
						})
						setTimeout(uni.navigateBack({
							delta: 1
						}),1500)
					
						uni.showToast({
							title:res.data.msg,
							icon:'none'
						})
					
                      
				})
			}
			
		}
	}
</script>

<style lang="scss">
	.content{
		textarea{
			margin: 20rpx auto;
			width: 90%;
			height: 300rpx;
			background:rgba(241,241,241,1);
			border-radius:10rpx;
		}
		.number{
			margin-left: 90%;
			font-size:25rpx;
			font-family:PingFang SC;
			font-weight:500;
			color:rgba(101,101,101,1);
		}
		.foot{
			width: 100%;
			background:#007AFF;
			border-radius:62rpx 62rpx 0px 0px;
			font-size:30rpx;
			font-family:PingFang SC;
			font-weight:bold;
			color:rgba(51,51,51,1);
			padding: 30rpx 0;
			position: fixed;
			bottom: 0;
			text-align: center;
		}
	}

</style>
